package com.orde.service.service;

import org.flowable.engine.RuntimeService;
import org.flowable.engine.runtime.ProcessInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * FileName: LeaveRequestService.java
 * Author:   徐寿春
 * Date:     2025/1/8 23:04
 * <p>
 * 名称:  配置流程启动 对应 bpm
 *
 */
@Service
public class LeaveRequestService {
    @Autowired
    private RuntimeService runtimeService;

    public ProcessInstance startLeaveRequest() {
        return runtimeService.startProcessInstanceByKey("leaveRequestProcess");
    }
}
